class AssignmentAnswer < ActiveRecord::Base
  belongs_to :assignment
  belongs_to :grader, :class_name => "User", :foreign_key => "grader_id"
  belongs_to :user
  has_one :answer_blob, :dependent => :destroy

  validates_presence_of :due_date
  validates_presence_of :duration

end
